package com.example.xiaoshuo_yudu.entity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户书架表
 * </p>
 *
 * @author xusen
 * @since 2025-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bookshelf")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Bookshelf implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 小说ID
     */
    private Long bookId;
    /**
     * 章节ID
     */
    private Long chapterId;

    /**
     * 添加时间
     */
    private LocalDateTime addTime;

    /**
     * 最后阅读时间
     */
    private LocalDateTime lastRead;

    /**
     * 阅读进度(百分比)
     */
    private Integer readProgress;
    /**
     * 是否加入书架
     */
    private Long isBookshelf;



}
